home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / netzwerk / parnet / devices / parnet.h-reconstructed < prev    next >
Text File  |  1996-02-26  |  1KB  |  47 lines

  1. /*
  2.  * Reconstructed by Olaf 'Rhialto' Seibert from the
  3.  * original binary "parnet.device" (because it was
  4.  * missing from the distribution) 16-Jul-1993
  5.  */
  6.  
  7. #ifndef PARNET_SRC
  8. typedef struct Device *Device;
  9. typedef struct Unit   *Unit;
  10. #endif
  11.  
  12. typedef
  13. struct IOParReq {
  14.     struct Message  io_Message;
  15.     Device       *io_Device;
  16.     Unit       *io_Unit;
  17.     UWORD        io_Command;
  18.     UBYTE        io_Flags;
  19.     BYTE        io_Error;
  20.     ULONG        io_Actual;
  21.     ULONG        io_Length;
  22.     APTR        io_Data;
  23.     ULONG        io_Offset;
  24.  
  25.     UWORD        io_Port;        /* 0x30 */
  26.     UWORD        io_Addr;        /* 0x32 */
  27.     APTR        io_Data2;        /* 0x34 */
  28.     ULONG        io_Length2;     /* 0x38 */
  29. } IOParReq;
  30.  
  31. #define PPERR_NOBITSRES     -31     /* 0xdf */
  32. #define PPERR_NOPORTRES     -32     /* 0xe0 */
  33. #define PPERR_NOTASK        -34     /* 0xde */
  34. #define PPERR_NOINT        -35     /* 0xdd */
  35. #define PPERR_WARN_OVFLOW   -41     /* 0xd7 */
  36. #define PPERR_PORT_IN_USE   -42     /* 0xd6 */
  37.  
  38. #define PRO_MASK        0x1F    /* io_Flags */
  39. #define PRO_CTL         0x00
  40. #define PRO_DGRAM        0x01
  41. #define PRO_STREAM        0x02
  42. #define PRO_LAST        0x02
  43.  
  44. #define PPD_SETADDR        (CMD_NONSTD + 0)
  45. #define PPD_SETTO        (CMD_NONSTD + 1)
  46.  
  47.